Filter hook 'hooked_block_{$hooked_block_type}'

in WP Core File wp-includes/blocks.php at line 925

Description

Filters the parsed block array for a given hooked block. The dynamic portion of the hook name, `$hooked_block_type`, refers to the block type name of the specific hooked block.

Occurrences

Filename Line Number
wp-includes/blocks.php 925
wp-includes/blocks.php 983

Parameters

Type Name Description
array|null $parsed_hooked_block The parsed block array for the given hooked block type, or null to suppress the block.
string $hooked_block_type The hooked block type name.
string $relative_position The relative position of the hooked block.
array $parsed_anchor_block The anchor block, in parsed block array format.
WP_Block_Template|WP_Post|array $context The block template, template part, `wp_navigation` post type, or pattern that the anchor block belongs to.

PHP Doc

/**
		 * Filters the parsed block array for a given hooked block.
		 *
		 * The dynamic portion of the hook name, `$hooked_block_type`, refers to the block type name of the specific hooked block.
		 *
		 * @since 6.5.0
		 *
		 * @param array|null                      $parsed_hooked_block The parsed block array for the given hooked block type, or null to suppress the block.
		 * @param string                          $hooked_block_type   The hooked block type name.
		 * @param string                          $relative_position   The relative position of the hooked block.
		 * @param array                           $parsed_anchor_block The anchor block, in parsed block array format.
		 * @param WP_Block_Template|WP_Post|array $context             The block template, template part, `wp_navigation` post type,
		 *                                                             or pattern that the anchor block belongs to.
		 */